package test.org.nanotek.jpa.persistence.city;

import javax.validation.constraints.NotNull;

import org.nanotek.Builder;
import org.nanotek.base.StringBase;
import org.nanotek.base.atlas.city.CityGuide;
import org.nanotek.base.atlas.city.address.Address;

public class CityGuideBuilder implements Builder<CityGuide>{

	CityGuide cityGuide = new CityGuide();
	
	public CityGuideBuilder() {
	}
	
	public CityGuideBuilder setCityName(@NotNull String cityName) {
		cityGuide.setCityName(new StringBase(cityName));
		return this;
	}


	public CityGuideBuilder addAddresses(@NotNull Address address) {
		cityGuide.getAddresses().add(address);
		return this;
	}
	
	@Override
	public CityGuide build() {
		return cityGuide;
	}

}
